package com.pan.hisystem.utils;

import com.pan.hisystem.pojo.Drug;
import com.pan.hisystem.service.IDrugService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description 获取药品工具类
 * @Author qingyang
 * @Date 2022/4/10 22:28
 * @Version 1.0
 **/
@Component
public class DrugsUtil {

    @Autowired
    private IDrugService drugService;

    public  List<Drug> getDrugs(){
        return drugService.list();
    }




}
